package com.team.design.factory;

public class BikeStore {

   private IBikeFactory factory;

   public BikeStore(IBikeFactory factory) {
       this.factory = factory;
   }
    /**
     * 车辆订购
     */
   public void purchase(){
       Bike bike = factory.createBike();
       bike.complete();
   }
}
